home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / FreshBar / Source / FreshLocale.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  1.3 KB  |  42 lines

  1. //*************************************************************************//
  2. // Filename:    FreshLocale.h
  3. // Autor:       Christian Taulien of Strange Intelligence
  4. // Purpose:     Localizing include file
  5. // Creation:    31. März 1998
  6. //*************************************************************************//
  7. #ifndef FRESHLOCALE_H
  8. #define FRESHLOCALE_H
  9.  
  10. #include "internalcatalog.h"
  11.  
  12. #include <exec/types.h>
  13. #include <libraries/locale.h>
  14. #include <utility/tagitem.h>
  15.  
  16. class CatalogC
  17. {
  18. private:
  19.   // ## private datamembers ##
  20.   struct Catalog *m_poCatalog;
  21.  
  22. public:
  23.   // ## public methods ##
  24.   CatalogC(char *arg_sName, ULONG arg_ulVersion = NULL, struct Locale *arg_poLocale = NULL);
  25.   CatalogC(char *arg_sName, struct Locale *arg_poLocale, ULONG arg_eTags ...);
  26.   virtual ~CatalogC();
  27.  
  28.   BOOL openCatalog(char *arg_sName, struct Locale *arg_poLocale = NULL, struct TagItem *arg_poTagList = NULL);
  29.   BOOL openCatalog(char *arg_sName, struct Locale *arg_poLocale, ULONG arg_eTags ...);
  30.   void closeCatalog();
  31.   BOOL isOpen() { return m_poCatalog ? TRUE : FALSE; };
  32.   char getShortCut(int arg_iStringNum);
  33.   char getShortCutLowerCase(int arg_iStringNum);
  34.   unsigned char *getString(int arg_iStringNum);
  35.  
  36.   unsigned char *operator[](int arg_iStringNum) { return getString(arg_iStringNum); };
  37. };
  38.  
  39. extern CatalogC *glob_poCatalog;
  40.  
  41. #endif // FRESHLOCALE_H
  42.